﻿using System.Collections.Generic;
using UnityEngine;
using XLua;

namespace Yoozoo.Gameplay.RTS.Proto
{
    
    [GCOptimize]
    [LuaCallCSharp]
    public struct SoldierLocation
    {
        public int id;
        public Vector3 pos;
        public float scale;
        public SoldierLocation(int id, float x,float y, float z,float w=1.0f)
        {
            this.id = id;
            this.pos = new Vector3(x,y,z);
            this.scale = w;
        }
    }

    [GCOptimize]
    [LuaCallCSharp]
    public struct BattleFormationCfg
    {
        public int formationType;
        public int soldierNum;
        public int modelNum;
        public int fixedSoldierID;
        public List<SoldierLocation> soldierLocation;
        public List<SoldierLocation> battleSoldierLocation;
        public int formationPositionIndex;
    }
    
    [GCOptimize]
    [LuaCallCSharp]
    public struct BattleFormationCfgs
    {
        public List<BattleFormationCfg> cfgs;
    }
    
}